package com.shen.pojo.circle;

/**
 * Author:shen
 * CreateDate:2020/4/29.
 * Function:
 */
public class Circle {
    private static final double PI = 3.14;
    private int r;

    public Circle() {
    }

    public Circle(int r) {
        this.r = r;
    }
    public double area(){
        return this.r*this.r*this.PI;
    }
    public double girth(){
        return this.r*2*this.PI;
    }

    public int getR() {
        return r;
    }

    public void setR(int r) {
        this.r = r;
    }
}
